#include "sys.h" 


void NVIC_Configuration(void)
{
		NVIC_InitTypeDef  NVIC_InitStructure;	
    NVIC_PriorityGroupConfig(NVIC_PriorityGroup_2);

//		NVIC_InitStructure.NVIC_IRQChannel = EXTI9_5_IRQn;				
//		NVIC_InitStructure.NVIC_IRQChannelPreemptionPriority = 0x00;	
//		NVIC_InitStructure.NVIC_IRQChannelSubPriority = 0x01;					
//		NVIC_InitStructure.NVIC_IRQChannelCmd = ENABLE;								
//		NVIC_Init(&NVIC_InitStructure); 
	
			
		NVIC_InitStructure.NVIC_IRQChannel = TIM3_IRQn;  
		NVIC_InitStructure.NVIC_IRQChannelPreemptionPriority = 0x01; 
		NVIC_InitStructure.NVIC_IRQChannelSubPriority = 0x01;  
		NVIC_InitStructure.NVIC_IRQChannelCmd = ENABLE; 
		NVIC_Init(&NVIC_InitStructure);  
	

//		NVIC_InitStructure.NVIC_IRQChannel = EXTI2_IRQn;							
//		NVIC_InitStructure.NVIC_IRQChannelPreemptionPriority = 0x01;	
//		NVIC_InitStructure.NVIC_IRQChannelSubPriority = 0x02;					
//		NVIC_InitStructure.NVIC_IRQChannelCmd = ENABLE;								
//		NVIC_Init(&NVIC_InitStructure);  
//	
//		NVIC_InitStructure.NVIC_IRQChannel = USART1_IRQn;
//		NVIC_InitStructure.NVIC_IRQChannelPreemptionPriority=0x02 ;
//		NVIC_InitStructure.NVIC_IRQChannelSubPriority = 0x02;			
//		NVIC_InitStructure.NVIC_IRQChannelCmd = ENABLE;						
//		NVIC_Init(&NVIC_InitStructure);				

//		NVIC_InitStructure.NVIC_IRQChannel = USART3_IRQn;
//		NVIC_InitStructure.NVIC_IRQChannelPreemptionPriority=0x02 ;
//		NVIC_InitStructure.NVIC_IRQChannelSubPriority = 0x02;		
//		NVIC_InitStructure.NVIC_IRQChannelCmd = ENABLE;			
//		NVIC_Init(&NVIC_InitStructure);	
}
